package day03;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;

import org.junit.Test;

/**
 * 输入某人生日，格式为"yyyy-MM-dd"，输出到现在为止经过了多少周。
 * @author Bonnie
 *
 */
public class Test03 {
	@Test
	public void test() throws ParseException {
		Scanner console = new Scanner(System.in);
		String str = console.nextLine();
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
		Date date = sdf.parse(str);
		long time2 = date.getTime();
		long time1 = System.currentTimeMillis();
		long time = (time1 - time2) / 1000 / 60 / 60 / 24 / 7;
		System.out.println(time);
		console.close();
	}
}
